package com.atguigu.bean;

import org.springframework.beans.factory.annotation.Value;

/**
 * @Author:zwy
 * @Despriction:
 * @Date:Create in 14:34 2018/7/7
 * @Modify By:
 */
public class Person {
    //1基本数值
    //2可以写Spel #{}
    //3${}取出配置文件的值(在运行的环境遍历的值)
    @Value("张三")
    private String name;
    @Value("18")
    private Integer age;
    @Value("${person.ncickName}")
    private String nickName;
    public Person() {
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Person(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
